﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200078B RID: 1931
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetPetDataScRsp : IMessage<GetPetDataScRsp>, IMessage, IEquatable<GetPetDataScRsp>, IDeepCloneable<GetPetDataScRsp>, IBufferMessage
	{
		// Token: 0x170018A9 RID: 6313
		// (get) Token: 0x060056C5 RID: 22213 RVA: 0x000EA74D File Offset: 0x000E894D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetPetDataScRsp> Parser
		{
			get
			{
				return GetPetDataScRsp._parser;
			}
		}

		// Token: 0x170018AA RID: 6314
		// (get) Token: 0x060056C6 RID: 22214 RVA: 0x000EA754 File Offset: 0x000E8954
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetPetDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170018AB RID: 6315
		// (get) Token: 0x060056C7 RID: 22215 RVA: 0x000EA766 File Offset: 0x000E8966
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetPetDataScRsp.Descriptor;
			}
		}

		// Token: 0x060056C8 RID: 22216 RVA: 0x000EA76D File Offset: 0x000E896D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPetDataScRsp()
		{
		}

		// Token: 0x060056C9 RID: 22217 RVA: 0x000EA780 File Offset: 0x000E8980
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPetDataScRsp(GetPetDataScRsp other) : this()
		{
			this.curPetId_ = other.curPetId_;
			this.retcode_ = other.retcode_;
			this.unlockedPetId_ = other.unlockedPetId_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060056CA RID: 22218 RVA: 0x000EA7CD File Offset: 0x000E89CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPetDataScRsp Clone()
		{
			return new GetPetDataScRsp(this);
		}

		// Token: 0x170018AC RID: 6316
		// (get) Token: 0x060056CB RID: 22219 RVA: 0x000EA7D5 File Offset: 0x000E89D5
		// (set) Token: 0x060056CC RID: 22220 RVA: 0x000EA7DD File Offset: 0x000E89DD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurPetId
		{
			get
			{
				return this.curPetId_;
			}
			set
			{
				this.curPetId_ = value;
			}
		}

		// Token: 0x170018AD RID: 6317
		// (get) Token: 0x060056CD RID: 22221 RVA: 0x000EA7E6 File Offset: 0x000E89E6
		// (set) Token: 0x060056CE RID: 22222 RVA: 0x000EA7EE File Offset: 0x000E89EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170018AE RID: 6318
		// (get) Token: 0x060056CF RID: 22223 RVA: 0x000EA7F7 File Offset: 0x000E89F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> UnlockedPetId
		{
			get
			{
				return this.unlockedPetId_;
			}
		}

		// Token: 0x060056D0 RID: 22224 RVA: 0x000EA7FF File Offset: 0x000E89FF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetPetDataScRsp);
		}

		// Token: 0x060056D1 RID: 22225 RVA: 0x000EA810 File Offset: 0x000E8A10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetPetDataScRsp other)
		{
			return other != null && (other == this || (this.CurPetId == other.CurPetId && this.Retcode == other.Retcode && this.unlockedPetId_.Equals(other.unlockedPetId_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060056D2 RID: 22226 RVA: 0x000EA870 File Offset: 0x000E8A70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CurPetId != 0U)
			{
				num ^= this.CurPetId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.unlockedPetId_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060056D3 RID: 22227 RVA: 0x000EA8D6 File Offset: 0x000E8AD6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060056D4 RID: 22228 RVA: 0x000EA8DE File Offset: 0x000E8ADE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060056D5 RID: 22229 RVA: 0x000EA8E8 File Offset: 0x000E8AE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CurPetId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.CurPetId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			this.unlockedPetId_.WriteTo(ref output, GetPetDataScRsp._repeated_unlockedPetId_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060056D6 RID: 22230 RVA: 0x000EA954 File Offset: 0x000E8B54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CurPetId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurPetId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.unlockedPetId_.CalculateSize(GetPetDataScRsp._repeated_unlockedPetId_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060056D7 RID: 22231 RVA: 0x000EA9C0 File Offset: 0x000E8BC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetPetDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CurPetId != 0U)
			{
				this.CurPetId = other.CurPetId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.unlockedPetId_.Add(other.unlockedPetId_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060056D8 RID: 22232 RVA: 0x000EAA21 File Offset: 0x000E8C21
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060056D9 RID: 22233 RVA: 0x000EAA2C File Offset: 0x000E8C2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 32U)
				{
					if (num == 16U)
					{
						this.CurPetId = input.ReadUInt32();
						continue;
					}
					if (num == 32U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				else if (num == 112U || num == 114U)
				{
					this.unlockedPetId_.AddEntriesFrom(ref input, GetPetDataScRsp._repeated_unlockedPetId_codec);
					continue;
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040021E5 RID: 8677
		private static readonly MessageParser<GetPetDataScRsp> _parser = new MessageParser<GetPetDataScRsp>(() => new GetPetDataScRsp());

		// Token: 0x040021E6 RID: 8678
		private UnknownFieldSet _unknownFields;

		// Token: 0x040021E7 RID: 8679
		public const int CurPetIdFieldNumber = 2;

		// Token: 0x040021E8 RID: 8680
		private uint curPetId_;

		// Token: 0x040021E9 RID: 8681
		public const int RetcodeFieldNumber = 4;

		// Token: 0x040021EA RID: 8682
		private uint retcode_;

		// Token: 0x040021EB RID: 8683
		public const int UnlockedPetIdFieldNumber = 14;

		// Token: 0x040021EC RID: 8684
		private static readonly FieldCodec<uint> _repeated_unlockedPetId_codec = FieldCodec.ForUInt32(114U);

		// Token: 0x040021ED RID: 8685
		private readonly RepeatedField<uint> unlockedPetId_ = new RepeatedField<uint>();
	}
}
